<?php
html::printPath(
    array('userSpace.account-display-header' => '/user/myAccount/display', 'userSpace.changePassword-header' => ''),
    'userSpace.changePassword-desc'
);
$msg->printMessages();

$fb = new FormBuilder(NULL, $user);
$fb->setAction('/user/myAccount/saveNewPassword');
$fb->text('userLogin')->readOnly()->labelKey('person.login');
$fb->password('userPassword')->required()->labelKey('person.new_password');
$fb->submitButton();
$fb->write();
?>
